<template>
  <section>
    <el-button type="primary" @click="avtivation" >确认激活</el-button>
  </section>
</template>

<script>

 import {addUser, batchRemoveUser, removeUser} from "../api/api";
 import util from "../common/js/util";

export default {
  data() {
    return {

    }
  },


  methods: {
    avtivation(){
     let id =  this.$route.query.id
      console.log(id)
      this.$http.get("/employee/put/"+id).then(res=>{
        let {success,message} = res.data
        if (success){
          //NProgress.done();
          this.$message({
            message: '操作成功',
            type: 'success'
          });
        }else {
          this.$message('错了哦，这是一条错误消息');
        }
      })
    }

  }

}

</script>

<style scoped>

</style>
